package cn.common.exception;

import lombok.Data;
import lombok.EqualsAndHashCode;

@EqualsAndHashCode(callSuper = true)
@Data
public class TokenException extends BaseException {
    private static final long serialVersionUID = 3076984003548588117L;

    IError error =  DefaultError.ACCESS_DENIED;
    public TokenException(String message) {
        super(message);
        error.setMessage(message);
    }
}
